package com.utils.network2.interceptor;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public class TokenInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request();
        Response originalResponse = chain.proceed(request);
        //TODO 这里是拦截逻辑 随便写的，视情况而定
        String code = originalResponse.header("token_code");
        return originalResponse;
    }
}
